package com.party.service.study;

import com.party.common.Page;
import com.party.model.Answer;
import com.party.model.Test;

import java.util.List;

/**
 * Created by 011926 on 2014/9/23.
 */
public interface AnswerService
{
    public int add(Answer answer);

    public int delete(Integer id);

    public Answer getById(Integer id);

    public List<Answer> getByIds(List<Integer> ids);

    /**
     * 分页获取
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getList(Answer answer, int pageSize, int pageNumber);

    /**
     * 根据题目id获得 它下面的题目选项
     * @param id
     * @return
     */
    public List<Answer> getByTestId(Integer id);
}
